package cn.jaye.fabric.common.constants;

/**
 * 全局常量定义
 * Created by Jaye on 2017/7/10.
 */
public class Global {

    public static final String LOG_PARA_SERVICE_NAME = "microservicename";
    public static final String LOG_PARA_URL = "url";
    public static final String LOG_PARA_HTTP_METHOD = "http_method";
    public static final String LOG_PARA_PARAS = "paras";
    public static final String LOG_PARA_RESPONSE = "response";

    public static final String DATA_EXECUTE_RESULT = "executeResult";
    private static final String TEST_ADMIN_NAME = "admin";
    private static final String TESTUSER_1_NAME = "user1";
    private static final String TEST_FIXTURES_PATH = "src/test/fixture";

    private static final String CHAIN_CODE_NAME = "example_cc_go";
    private static final String CHAIN_CODE_PATH = "github.com/example_cc";
    private static final String CHAIN_CODE_VERSION = "1";

    private static final String FOO_CHANNEL_NAME = "foo";
    private static final String BAR_CHANNEL_NAME = "bar";


    public static final String DOMAIN_SHORT_NAME = "DNAME";
    public static final String SESSION_USER_KEY = "user";
    public static final String USER_AFFILIATION = ".department1";


    public static final String WAIT_TIME_MILLISECS = "ordererWaitTimeMilliSecs";
    public static final String GRPC_NETTY_CHANNEL_BUILDER_OPTION_KEEPALIVE_TIME = "grpc.NettyChannelBuilderOption.keepAliveTime";
    public static final String GRPC_NETTY_CHANNEL_BUILDER_OPTION_KEEPALIVE_TIMEOUT = "grpc.NettyChannelBuilderOption.keepAliveTimeout";

    public static final String GRPC_NETTY_CHANNEL_BUILDER_OPTION_MAXINBOUND_MESSAGE_SIZE = "grpc.NettyChannelBuilderOption.maxInboundMessageSize";
}